<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <script type="text/javascript">
        	var tizhong = parseFloat(prompt("体重"));
        	var shenggao = parseFloat(prompt("身高"));
        	var bmi = tizhong / Math.pow(shenggao,2);
        	//console.log(bmi);
        	if(bmi>=32){
        		alert("肥胖")
        	}else if(bmi>=28){
				alert("过胖")
        	}else if(bmi>=25){
				alert("偏胖")
        	}else if(bmi>=18){
        		alert("正常")
        	}else{
        		alert("taiqing");
        	}
        </script>
    </head>
    <body>

    </body>
</html>